package com.mql.gre.beans;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "produit")
@XmlAccessorType(XmlAccessType.FIELD)
public class Produit {

	@XmlElement
	private String ref;
	@XmlElement
	private String desig;
	@XmlElement
	private Double pu;
	@XmlElement
	private Double qs;

	public Produit() {

	}

	public Produit(String ref, String desig, Double pu, Double qs) {
		super();
		this.ref = ref;
		this.desig = desig;
		this.pu = pu;
		this.qs = qs;
	}

	public String getRef() {
		return ref;
	}

	public void setRef(String ref) {
		this.ref = ref;
	}

	public String getDesig() {
		return desig;
	}

	public void setDesig(String desig) {
		this.desig = desig;
	}

	public Double getPu() {
		return pu;
	}

	public void setPu(Double pu) {
		this.pu = pu;
	}

	public Double getQs() {
		return qs;
	}

	public void setQs(Double qs) {
		this.qs = qs;
	}

	public String toString() {
		return "Produit [ref=" + ref + ", desig=" + desig + ", pu=" + pu
				+ ", qs=" + qs + "]";
	}

}
